package com.joysuch.wwyt.workflow.service;

import com.joysuch.wwyt.core.exception.ApiCoreException;
import com.joysuch.wwyt.workflow.bean.LocateVerifyResultBean;
import com.joysuch.wwyt.workflow.bean.WorkFlowSignBean;
import com.joysuch.wwyt.workflow.bean.LocationVerifyRecordBean;

import java.util.List;

public interface WorkFlowTaskSignService {

    /**
     * 获取开放平台token
     *
     * @return
     * @throws ApiCoreException
     */
    String getOpenServiceToken() throws ApiCoreException;

    /**
     * 蓝牙定位位置校验
     * @param signBean
     * @return
     */
    Boolean verifySignAreaBluetooth(WorkFlowSignBean signBean);

    /**
     * 校验人员是否在区域内
     *
     * @param signBean
     */
    LocateVerifyResultBean verifySignArea(WorkFlowSignBean signBean) throws ApiCoreException;

    /**
     * 获取位置校验记录根据任务code
     * @param taskCode
     * @return
     */
    List<LocationVerifyRecordBean> getLocationVerifyRecordByTaskCode(String taskCode);
}
